package com.maybach.workflow.core.dal.mapper;

import com.maybach.workflow.common.model.FlowApplyDO;
import com.maybach.workflow.common.query.FlowApplyQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for FlowApply.
 */
public interface FlowApplyMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowApplyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowApplyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    int insertSelective(FlowApplyDO record);

    /**
     * select by query condition.
     */
    List<FlowApplyDO> selectByQuery(FlowApplyQuery query);

    /**
     * select by primary key.
     */
    FlowApplyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") FlowApplyDO record, @Param("query") FlowApplyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") FlowApplyDO record, @Param("query") FlowApplyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowApplyDO record);
}